package com.yb.module.model.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yb.framework.core.base.BaseMapper;
import com.yb.framework.core.base.BaseServiceImpl;
import com.yb.module.model.domain.ModelThingShape;
import com.yb.module.model.mapper.ModelThingShapeMapper;
import com.yb.module.model.service.ModelThingShapeService;

@Service
public class ModelThingShapeServiceImpl extends BaseServiceImpl<ModelThingShape> implements ModelThingShapeService {
	
	@Autowired
	private ModelThingShapeMapper modelThingShapeMapper;
	
	@Override
	protected BaseMapper<ModelThingShape> getMapper() {
		return modelThingShapeMapper;
	}

	@Override
	public List<Long> getShapeIdsByThingId(Long thingId) {
		// TODO Auto-generated method stub
		return modelThingShapeMapper.getShapeIdsByThingId(thingId);
	}

	@Override
	public List<Long> getThingIdsByShapeId(Long shapeId) {
		// TODO Auto-generated method stub
		return modelThingShapeMapper.getThingIdsByShapeId(shapeId);
	}
}